//package com.patrol.auth.config;
//
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//
////配置类
//@Configuration
//public class MyMvcConfig implements WebMvcConfigurer {
////    @Override
////    public void addViewControllers(ViewControllerRegistry registry) {
////        registry.addViewController("/").setViewName("index");
////        registry.addViewController("/index.html").setViewName("index");
////    }
////    //设置拦截器
////    @Override
////    public void addInterceptors(InterceptorRegistry registry) {
////        registry.addInterceptor(new LoginHandlerInterceptor())
////                .addPathPatterns("/**")
////                .excludePathPatterns("/index.html", "/", "/user/login", "/css/**","/layui/**", "/js/**", "/images/**","/user/regiest");//不拦截的网页地址（后续网页加在这里）
////    }
//}
